package com.fc.happyteam.service.impl;

import com.fc.happyteam.dao.RegionDao;
import com.fc.happyteam.entity.RegionEntity;
import com.fc.happyteam.service.IRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("regionService")
public class RegionServiceImpl implements IRegionService {

    @Autowired
    private RegionDao regionDao;

    @Override
    public RegionEntity queryObject(Long id) {
        return regionDao.queryObject(id);
    }

    @Override
    public List<RegionEntity> queryList(Map<String, Object> map) {
        return regionDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return regionDao.queryTotal(map);
    }

    @Override
    public void save(RegionEntity region) {
        regionDao.save(region);
    }

    @Override
    public void update(RegionEntity region) {
        regionDao.update(region);
    }

    @Override
    public void delete(Long id) {
        regionDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        regionDao.deleteBatch(ids);
    }
}
